class Http {
    static baseUrl = `http://192.168.4.247`;
    static request(url) {
        return new Promise((resolve, reject) => {
            wx.request({
              url: this.baseUrl + url,
              success: (result) => {
                  resolve(result)
              },
              fail: (res) => {
                  reject(res)
              },
            })
        })
    }
}

module.exports = Http;